package com.open.capacity.paper.service.impl;

import com.open.capacity.common.model.RateType;
import com.open.capacity.paper.dao.RateTypeDao;
import com.open.capacity.paper.service.RateTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RateTypeServiceImpl implements RateTypeService {
    @Autowired(required = false)
    RateTypeDao rateTypeDao;
    @Override
    public List<RateType> getRateTypeList() {
        return rateTypeDao.getRateTypeList();
    }

    @Override
    public RateType getRateType(String rtcode) {
        return rateTypeDao.getRateType(rtcode);
    }

    @Override
    public int addRateType(RateType rateType) {
        return rateTypeDao.addRateType(rateType);
    }

    @Override
    public int updateRateType(RateType rateType) {
        return rateTypeDao.updateRateType(rateType);
    }

    @Override
    public int deleteRateType(Integer id) {
        return rateTypeDao.deleteRateType(id);
    }
}
